package longcaisuyun.longcai.com.net;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;
import com.zcx.helper.util.UtilMD5;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/27.
 */
@HttpInlet(Net.DELECARD)
public class PostDele extends WHAsyPost<PostDele.Info> {
    public String driverid;
    public String password;

    public PostDele(String driverid, String password, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.driverid = driverid;
        this.password = UtilMD5.MD5EncodeCount(password,"",2);
    }

    @Override
    protected Info parser(JSONObject object) {
        Info info = new Info();
        try {
            info.message = object.getString("message");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return info;
    }

    public static class Info {
        public String message;
    }
}
